import {firstRequest} from '@/request'

// 品牌管理   
export interface getTrademarkListData{
    id: number,
    tmName: string,
    logoUrl: string
}
export interface addtype {
    logoUrl: string;
    tmName: any;
  }
// GET /admin/product/baseTrademark/{page}/{limit}
// getTrademarkList
export const getTrademarkList =(page:number,limit:number)=>{
    return firstRequest.get<any,getTrademarkListData>(`/admin/product/baseTrademark/${page}/${limit}`)
}

// DELETE /admin/product/baseTrademark/remove/{id}
// 删除BaseTrademark


// POST /admin/product/baseTrademark/save
// 新增BaseTrademark
export const addbaseTrademark = (data: addtype)=> {
    return firstRequest.post("/admin/product/baseTrademark/save", data);
}

// PUT /admin/product/baseTrademark/update
// 修改BaseTrademark


// 三级分类

// GET /admin/product/getCategory1
// getCategory1

// GET /admin/product/getCategory2/{category1Id}
// getCategory2

// GET /admin/product/getCategory3/{category2Id}
// getCategory3





